/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package backing;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;

/**
 *
 * @author XJ
 */
@ManagedBean
public class LectureBacking {

    @ManagedProperty(value = "")
    private String applier;
    @ManagedProperty(value = "")
    private String kind_of_lec;
    @ManagedProperty(value = "")
    private String title;
    @ManagedProperty(value = "")
    private String data;
    @ManagedProperty(value = "")
    private String location;
    @ManagedProperty(value = "")
    private String name;
    @ManagedProperty(value = "")
    private String company;
    @ManagedProperty(value = "")
    private String positon;
    @ManagedProperty(value = "")
    private String bank_id;
    @ManagedProperty(value = "")
    private String ID;
    @ManagedProperty(value = "")
    private String audience;
    @ManagedProperty(value = "")
    private String opinion;
    @ManagedProperty(value = "")
    private String decision;
    
    private String[] disabled=new String[2];

    public String[] getDisabled() {
        return disabled;
    }

    public void setDisabled(String[] disabled) {
        this.disabled = disabled;
    }
    
    public String getDecision() {
        return decision;
    }

    public void setDecision(String decision) {
        this.decision = decision;
    }
    
    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getApplier() {
        return applier;
    }

    public void setApplier(String applier) {
        this.applier = applier;
    }

    public String getAudience() {
        return audience;
    }

    public void setAudience(String audience) {
        this.audience = audience;
    }

    public String getBank_id() {
        return bank_id;
    }

    public void setBank_id(String bank_id) {
        this.bank_id = bank_id;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getKind_of_lec() {
        return kind_of_lec;
    }

    public void setKind_of_lec(String kind_of_lec) {
        this.kind_of_lec = kind_of_lec;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public String getPositon() {
        return positon;
    }

    public void setPositon(String positon) {
        this.positon = positon;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public LectureBacking() {
    }
    
    public String commitForm(){
        String outcome=null;
        return outcome;
    }
    public String setPermission(){
        String[] s={"false","true"};
        this.setDisabled(s);
        return "lecture_form";
    }
    
    public String fillForm(String s){
        if(s.equals("apply"))
            this.setPermission();        
        return "lecture_form";
    }
}
